class IdUtils {
	private counter: number = 0

	generateNumberId = (): number => {
		const timestamp = Date.now()
		const uniqueId = timestamp * 1000 + this.counter++
		return uniqueId
	}

	generateStringId = (): string => {
		const timestamp = Date.now()
		const uniqueId = timestamp * 1000 + this.counter++
		return uniqueId.toString()
	}
}

export default new IdUtils()
